package au.com.test;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;


public class HelloWorld {
	
	static Logger logger = Logger.getLogger(HelloWorld.class);
	
	
	public static void main(String args[]){
		new HelloWorld().test();
		


	}
	
	public void test(){
		System.out.println("Hello World");
		
		PropertyConfigurator.configure("conf/log4j.properties");
		
		logger.debug("Did it again!");

		// Read properties file.
		Properties properties = new Properties();
		try {
		    //properties.load(this.getClass().getClassLoader().getResourceAsStream("conf/log4j.properties"));
			properties.load(new FileInputStream("conf/log4j.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
